package com.suntianci.stock.mapper;

import com.suntianci.stock.pojo.domain.StockDescribeDataDomain;
import com.suntianci.stock.pojo.entity.StockBusiness;

import java.util.List;
import java.util.Map;

/**
* @author 孙天赐
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2024-12-24 15:39:27
* @Entity com.suntianci.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    List<String> getAllStockCode();

    /**
     * 据输入的个股代码，进行模糊查询
     * @param searchStr
     * @return
     */
    List<Map<String, String>> searchStockByCode(String searchStr);

    /**
     * 查询个股主营业务
     * @param code
     * @return
     */
    StockDescribeDataDomain getStockMainBusiness(String code);
}
